package com.example.liumuyao.zyfypt_412lmy.activity;

import android.renderscript.Byte2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.example.liumuyao.zyfypt_412lmy.R;

public class RegisterActivity extends AppCompatActivity implements View.OnClickListener{
    private TextView username,userpass,userpasschack,useremail,tv;
    private Button brg,bck;
    private EditText name,pass,passchack,email;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        init();
    }

    private void init() {
        username = (TextView)findViewById(R.id.textView7);
        userpass = (TextView)findViewById(R.id.textView10);
        userpasschack = (TextView)findViewById(R.id.textView11);
        useremail = (TextView)findViewById(R.id.textView12);
        tv = (TextView)findViewById(R.id.textView9);
        brg = (Button)findViewById(R.id.button3);
        bck = (Button)findViewById(R.id.button4);
        name = (EditText)findViewById(R.id.editText2);
        pass = (EditText)findViewById(R.id.editText5);
        passchack = (EditText)findViewById(R.id.editText6);
        email = (EditText)findViewById(R.id.editText8);

        brg.setOnClickListener(this);
        bck.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.button3:
                finish();
                break;
            case R.id.button4:
                finish();
                break;
        }
    }
}
